package cn.gson.oasys.services.user.impl;

import cn.gson.oasys.model.dao.user.UserLogRecordDao;
import cn.gson.oasys.model.entity.user.LoginRecord;
import cn.gson.oasys.services.user.UserLoginRecordService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
@Transactional
public class UserLoginRecordServiceImpl implements UserLoginRecordService {

    @Autowired
    private UserLogRecordDao logRecordDao;

    //记日志
    Logger log = LoggerFactory.getLogger(getClass());

    //保存用户登录记录
    @Override
    public LoginRecord save(LoginRecord loginRecord) {
        return logRecordDao.save(loginRecord);
    }
}
